let proxyObj = {};
proxyObj['/ws'] = {
    ws: true,
    target: 'ws://localhost:8081',
};
proxyObj['/api'] = {
    ws: false,
    target: 'http://localhost:8081',
    // target:'http://192.168.44.189:8081',
    changeOrigin: true,
    pathRewrite: {
        '^/api': ''
    }
};

//跨域代理
module.exports = {
    devServer: {
        host: 'localhost',
        port: 8080,
        proxy: proxyObj
    },
    publicPath: './',
};

